//
//  Person.m
//  07-ARC代码编写
//
//  Created by dllo on 16/7/12.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "Person.h"

@implementation Person
// 初始化重写方法,调用self.objc 会走setObjc:(NSObject *)objc方法,_objc不走
- (instancetype)init {
    self = [super init];
    if (self) {
        _objc = [NSObject new];
//        self.objc = [NSObject new];
    }
    return self;
}
- (void)setObjc:(NSObject *)objc {
    _objc = objc;
}
- (void)setString:(NSString *)string {
    _string = string;
}
- (void)setCount:(NSInteger)count {
    _count = count;
}
- (void)setDelegate:(id<NSObject>)delegate {
    _delegate = delegate;
}
// ARC可以写dealloc 不可以写[super dealloc]
- (void)dealloc
{
    
}

@end
